package org.shean.app.rssreader.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public class SzRSSReader {
public static final String AUTHORITY = "org.shean.rssreader.provider";
	
	public interface Channels extends BaseColumns
	{
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/channels");
		public static final String DEFAULT_SORT_ORDER = "title ASC";
		public static final String TITLE = "title";
		public static final String URL = "url";
		public static final String LINK = "link";
		public static final String DESCRIPTION = "description";
		public static final String lANGUAGE = "language";
		public static final String LAST_BUILD_DATE = "lastBuildDate";
		public static final String LAST_REFRESH_DATE = "lastRefreshDate";
	}
	
	public interface Posts extends BaseColumns
	{
		public static final Uri CONTENT_URI = 
		  Uri.parse("content://" + AUTHORITY + "/posts");
		public static final Uri CONTENT_URI_LIST =
		  Uri.parse("content://" + AUTHORITY + "/postlist");
		
		public static final String DEFAULT_SORT_ORDER = "postedOnDate DESC";
		public static final String CHANNEL_ID = "channel_id";
		public static final String IS_READ = "isRead"; 
		public static final String TITLE = "title";
		public static final String LINK = "link";
		public static final String DESCRIPTION = "description";
		public static final String POST_DATE = "postedOnDate";
		public static final String IS_FAVORITE = "isFavorite";
		public static final String COMMENT = "comment";
	}
	
	public interface Tags extends BaseColumns
	{
		public static final Uri CONTENT_URI = 
			  Uri.parse("content://" + AUTHORITY + "/tags");
			
		public static final String DEFAULT_SORT_ORDER = "name ASC";
		public static final String NAME = "name"; 
	}
	
	public interface PostTags extends BaseColumns
	{
		public static final Uri CONTENT_URI = 
		  Uri.parse("content://" + AUTHORITY + "/posttags");
		
		public static final String DEFAULT_SORT_ORDER = "name ASC";
		public static final String CHANNEL_ID = "channel_id";
		public static final String NAME = "name"; 
		public static final String POST_ID = "post_id";
		public static final String TAG_ID = "tag_id";
	}
	
	public interface PostComments extends BaseColumns
	{
		public static final Uri CONTENT_URI = 
		  Uri.parse("content://" + AUTHORITY + "/postcomments");
		
		public static final String DEFAULT_SORT_ORDER = "create_date DESC";
		public static final String CHANNEL_ID = "channel_id";
		public static final String COMMENT = "comment"; 
		public static final String POST_ID = "post_id";
		public static final String CREATE_DATE = "create_date";
	}

}
